<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页访问</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
   <!-- <link rel="stylesheet" href="/css/theme.css">-->
    <script src="/js/jquery.min.js"></script>
    <script src="/layui/layui.js"></script>
</head>
<body>
   <h1>欢迎进入首页</h1>


<!--       <form action="/upload/addPersonsFileOfZip" method="post" enctype="multipart/form-data">
           <input type="text" name="KEY_CREATED_ID" />
           <input type="file" name="file" />
           <input type="submit" value="上传文件" />
       </form>
   <div id="result"></div>-->

  <!-- <div class="layui-btn-container">
       <button type="button" class="layui-btn layui-btn-normal" id="test4">选择文件</button>
       <button type="button" class="layui-btn" id="test9">开始上传</button>
   </div>-->
   <div class="layui-btn-container">
       <button type="button" class="layui-btn" id="test3"><i class="layui-icon"></i>上传文件</button>
       <button type="button" class="layui-btn layui-btn-primary" id="test4"><i class="layui-icon"></i>只允许压缩文件</button>
       <button type="button" class="layui-btn" id="test5"><i class="layui-icon"></i>上传视频</button>
       <button type="button" class="layui-btn" id="test6"><i class="layui-icon"></i>上传音频</button>
   </div>
    <script>
        layui.use(['upload', 'element', 'layer'], function(){
            var $ = layui.jquery,upload = layui.upload
            upload.render({
                //允许上传的文件后缀
                elem: '#test4'
                ,url: 'http://127.0.0.1:8082/upload/index' //改成您自己的上传接口
                ,accept: 'file' //普通文件
                //,exts: 'zip|rar|7z' //只允许上传压缩文件
                ,done: function(res){
                    layer.msg('上传成功');
                    console.log("上传成功")
                }
            });
        });
    </script>
</body>
</html>